package com.ruiysoft.entity.supplier;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(value="com.ruiysoft.entity.supplier.Supplier")
@Data
@TableName(value = "supplier")
public class Supplier implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键")
    private Integer id;

    /**
     * 供应商代码
     */
    @TableField(value = "supplier_code")
    @ApiModelProperty(value="供应商代码")
    private String supplierCode;

    /**
     * 供应商名称
     */
    @TableField(value = "supplier_name")
    @ApiModelProperty(value="供应商名称")
    private String supplierName;

    /**
     * 联系电话
     */
    @TableField(value = "telephone")
    @ApiModelProperty(value="联系电话")
    private String telephone;

    /**
     * 联系地址
     */
    @TableField(value = "address")
    @ApiModelProperty(value="联系地址")
    private String address;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createDate;

    /**
     * 修改时间
     */
    @TableField(value = "modify_date")
    @ApiModelProperty(value="修改时间")
    private LocalDateTime modifyDate;

    Long shopId;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_SUPPLIER_CODE = "supplier_code";

    public static final String COL_SUPPLIER_NAME = "supplier_name";

    public static final String COL_TELEPHONE = "telephone";

    public static final String COL_ADDRESS = "address";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_MODIFY_DATE = "modify_date";
}